kernel: generic: mtdsplit_seil: use -ENOENT instead of -ENODEV
authorChristian Marangi <[email protected]>
Thu, 20 Nov 2025 22:19:24 +0000 (23:19 +0100)
committerChristian Marangi <[email protected]>
Thu, 20 Nov 2025 22:42:11 +0000 (23:42 +0100)
New linux version will check the return code of parser on subpartitions.
The only valid case for skipping a parser with an error is -ENOENT.

Change the relevant entry to -ENOENT.

Signed-off-by: Christian Marangi <[email protected]>
target/linux/generic/files/drivers/mtd/mtdsplit/mtdsplit_seil.c

index e58bb49b23fcb3e9abee69ee2874e7397aeffa8d..07778554a80b13674a01396f95834f6ebc5ee294 100644 (file)
@@ -112,7 +112,7 @@ static int mtdsplit_parse_seil_fw(struct mtd_info *master,
        u64 id;
 
        if (!seil_bootdev_is_active(np))
-               return -ENODEV;
+               return -ENOENT;
 
        ret = of_property_read_u64(np, "iij,seil-id", &id);
        if (ret) {
@@ -137,7 +137,7 @@ static int mtdsplit_parse_seil_fw(struct mtd_info *master,
        if (be64_to_cpu(header.id) != id ||
            be32_to_cpu(header.vfmt) != SEIL_VFMT) {
                pr_debug("no valid seil image found in \"%s\"\n", master->name);
-               ret = -ENODEV;
+               ret = -ENOENT;
                goto err_free_parts;
        }
 
@@ -154,7 +154,7 @@ static int mtdsplit_parse_seil_fw(struct mtd_info *master,
        if (ret || (master->size - rootfs_offset) == 0) {
                pr_debug("no rootfs after seil image in \"%s\"\n",
                         master->name);
-               ret = -ENODEV;
+               ret = -ENOENT;
                goto err_free_parts;
        }